package com.example.qqlaobing.Umoney.view.fragment.home.act.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.qqlaobing.Umoney.R;
import com.example.qqlaobing.Umoney.view.fragment.home.act.bean.LoanRecognitionBean;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class LoanRecognitionAdapter extends BaseQuickAdapter<LoanRecognitionBean.DataBean.LoanBean.FqListBean, BaseViewHolder> {
    public LoanRecognitionAdapter(@Nullable List<LoanRecognitionBean.DataBean.LoanBean.FqListBean> data) {
        super(R.layout.item_loanrecognition, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, LoanRecognitionBean.DataBean.LoanBean.FqListBean item) {
        helper.setText(R.id.time,item.getDeadline())
                .setText(R.id.money,"￥"+item.getDamount());
    }
}

